/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package planspiel;

import admintool.imp03_data.IMP03_Platform;
import admintool.imp03_data.IMP03_Vacancy;

/**
 *
 * @author Administrator
 */
public class GameScreenController {
    
    //Constants
    /**
     * 
     */
    public static int VACANCYSTAGE = 1;
    /**
     * 
     */
    public static int PLATFORMSTAGE = 2;
    /**
     * 
     */
    public static int CANDIDATESTAGE = 3;
    /**
     * 
     */
    public static int MESSAGESTAGE = 4;
    /**
     * 
     */
    public static int TIPSTAGE = 5;
    
    //Buttons
    private boolean vacancyButtonEnabled = false;
    private boolean platformButtonEnabled = false;
    private boolean candidatesButtonEnabled = false;
    private boolean messagesButtonEnabled = false;
    private boolean tipsButtonEnabled = false;

    //Current stage
    // 1 = Vacancy
    // 2 = Platform
    // 3 = Candidates
    // 4 = Messages
    // 5 = Tips
    private int selectedGameStage = -1;

    //Selected Game-Objects
    private IMP03_Vacancy selectedVacancy = null;
    private IMP03_Platform selectedPlatform = null;

    /**
     * 
     * @param vacancyButtonEnabled
     * @param platformButtonEnabled
     * @param candidatesButtonEnabled
     * @param messagesButtonEnabled
     * @param tipsButtonEnabled
     * @param selectedGameStage
     * @param selectedVacancy
     * @param selectedPlatform
     */
    public GameScreenController(boolean vacancyButtonEnabled, boolean platformButtonEnabled, 
            boolean candidatesButtonEnabled, boolean messagesButtonEnabled, boolean tipsButtonEnabled,
            int selectedGameStage, IMP03_Vacancy selectedVacancy, IMP03_Platform selectedPlatform) {
        this.vacancyButtonEnabled = vacancyButtonEnabled;
        this.platformButtonEnabled = platformButtonEnabled;
        this.candidatesButtonEnabled = candidatesButtonEnabled;
        this.messagesButtonEnabled = messagesButtonEnabled;
        this.tipsButtonEnabled = tipsButtonEnabled;
        this.selectedGameStage = selectedGameStage;
        this.selectedVacancy = selectedVacancy;
        this.selectedPlatform = selectedPlatform;
    }

    /**
     * 
     * @return
     */
    public boolean isCandidatesButtonEnabled() {
        return candidatesButtonEnabled;
    }

    /**
     * 
     * @return
     */
    public boolean isMessagesButtonEnabled() {
        return messagesButtonEnabled;
    }

    /**
     * 
     * @return
     */
    public boolean isPlatformButtonEnabled() {
        return platformButtonEnabled;
    }

    /**
     * 
     * @return
     */
    public int getSelectedGameStage() {
        return selectedGameStage;
    }

    /**
     * 
     * @return
     */
    public IMP03_Platform getSelectedPlatform() {
        return selectedPlatform;
    }

    /**
     * 
     * @return
     */
    public IMP03_Vacancy getSelectedVacancy() {
        return selectedVacancy;
    }

    /**
     * 
     * @return
     */
    public boolean isTipsButtonEnabled() {
        return tipsButtonEnabled;
    }

    /**
     * 
     * @return
     */
    public boolean isVacancyButtonEnabled() {
        return vacancyButtonEnabled;
    }

    /**
     * 
     * @param candidatesButtonEnabled
     */
    public void setCandidatesButtonEnabled(boolean candidatesButtonEnabled) {
        this.candidatesButtonEnabled = candidatesButtonEnabled;
    }

    /**
     * 
     * @param messagesButtonEnabled
     */
    public void setMessagesButtonEnabled(boolean messagesButtonEnabled) {
        this.messagesButtonEnabled = messagesButtonEnabled;
    }

    /**
     * 
     * @param platformButtonEnabled
     */
    public void setPlatformButtonEnabled(boolean platformButtonEnabled) {
        this.platformButtonEnabled = platformButtonEnabled;
    }

    /**
     * 
     * @param selectedGameStage
     */
    public void setSelectedGameStage(int selectedGameStage) {
        this.selectedGameStage = selectedGameStage;
    }

    /**
     * 
     * @param selectedPlatform
     */
    public void setSelectedPlatform(IMP03_Platform selectedPlatform) {
        this.selectedPlatform = selectedPlatform;
    }

    /**
     * 
     * @param selectedVacancy
     */
    public void setSelectedVacancy(IMP03_Vacancy selectedVacancy) {
        this.selectedVacancy = selectedVacancy;
    }

    /**
     * 
     * @param tipsButtonEnabled
     */
    public void setTipsButtonEnabled(boolean tipsButtonEnabled) {
        this.tipsButtonEnabled = tipsButtonEnabled;
    }

    /**
     * 
     * @param vacancyButtonEnabled
     */
    public void setVacancyButtonEnabled(boolean vacancyButtonEnabled) {
        this.vacancyButtonEnabled = vacancyButtonEnabled;
    }
}
